<?php
//STILL UNDER CONSTRUCTION

session_start();
/**
 * Description of forum
 *
 * @author bilde
 */
class forum extends CI_Controller
{

	function  __construct()
        {
           parent::__construct();

           //Logged_in control
           if (!$this->session->userdata('is_logged_in'))
           {
                redirect('/welcome/index', 'refresh');
	   }
        }

        //Load the forum-view
        function index()
        {
            $data['title'] = 'Forum';
            $data['main_content'] = 'forum/forum_home';
            $this->load->vars($data);
            $this->load->view('includes/template');
	}
}
?>
